package cn.panda.edu.service;


import cn.panda.edu.model.Thesis;
import com.github.pagehelper.PageInfo;

/**
 * 
 * 类描述：学生端论文service  
 */
public interface ThesisService {

	/**
	 * 
	* @Title: deleteByPrimaryKey 
	* @Description: 根据主键删除
	* @param thesisId
	* @return  
	* int
	 */
    int deleteByPrimaryKey(Integer thesisId);

    /**
     * 
    * @Title: insert 
    * @Description: 添加论文
    * @param record
    * @return  
    * int
     */
    int insert(Thesis record);

    /**
     * 
    * @Title: insertSelective 
    * @Description: 有选择的添加
    * @param record
    * @return  
    * int
     */
    int insertSelective(Thesis record);
    /**
	 * 
	* @Title: listAll 
	* @Description: 学生端分页查找所有论文信息
	* @param pageIndex
	* @param pageSize
	* @param record
	* @return  
	* PageInfo<Thesis>
	 */
	 PageInfo<Thesis> listAll(int pageIndex, int pageSize, Thesis record);
	 PageInfo<Thesis> listAllByStuId(Integer stuId, int pageIndex, int pageSize);
    /**
     *
    * @Title: selectByPrimaryKey
    * @Description: 根据主键查询论文信息
    * @param thesisId
    * @return
    * Thesis
     */
    Thesis selectByPrimaryKey(Integer thesisId);

    /**
     *
    * @Title: updateByPrimaryKeySelective
    * @Description: 根据主键有选择的更新信息
    * @param record
    * @return
    * int
     */
    int updateByPrimaryKeySelective(Thesis record);

    /**
     *
    * @Title: updateByPrimaryKey
    * @Description: 根据主键更新全部信息
    * @param record
    * @return
    * int
     */
    int updateByPrimaryKey(Thesis record);
    /**
     *
    * @Title: selectLikeByPageSelective
    * @Description: 分页查询+模糊查询（学号+姓名）
    * @param @param map
    * @param @return
    * @return List<Thesis>
     */
    PageInfo<Thesis> selectLikeByPageSelective(Integer studentId, String studentName, Integer pageIndex, Integer pageSize);
}
